package com.atguigu.eduservice.service;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.frontvo.CourseFrontVo;
import com.atguigu.eduservice.entity.frontvo.CourseWebVo;
import com.atguigu.eduservice.entity.vo.CourseInfoVo;
import com.atguigu.eduservice.entity.vo.CoursePublishVo;
import com.atguigu.eduservice.entity.vo.CourseQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author hwt
 * @since 2022-08-23
 */
public interface EduCourseService extends IService<EduCourse> {

    R savaCourseInfo(CourseInfoVo infoVo);

    R getCourseInfo(String courseId);

    R updateCourseInfo(CourseInfoVo courseInfoVo);

    R getPublishCourseInfo(String id);

    R PublishCourse(String id);

    List<CoursePublishVo> selectCoursePage(CourseQuery query,Page<CoursePublishVo> page);

    R deleteCourse(String id);

    R removeCurse(String courseId);

    Map<String, Object> getCourseFrontList(Page<EduCourse> coursePage, CourseFrontVo vo);

    CourseWebVo getBaseCourseInfo(String id);
}
